package com.pp.tourism.web.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.pp.tourism.web.pojo.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author wjm
 * @since 2019-03-20
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> queryUsers(Page<User> page, @Param("cm") Map<String, Object> param);

    List<User> queryUsers(@Param("cm") Map<String, Object> param);

    @Select("SELECT * FROM `tw_user` where username='${username}'")
    User queryUserByName(@Param("username") String name);
}
